package com.plat.sdk.okgo.bean;

import java.io.Serializable;

/**
 * Created by ccb on 2017/10/11.
 */


public class ResponseBean<T> implements Serializable {

    public int errorCode;
    public String errorMsg;
    public T data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
    public boolean isSuccess(){
        return errorCode == 0;
    }
}